home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3805 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: sourcery.han.de!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <13213602@sourcery.han.de> <1005.6624T1300T707@teclink.net>
  4. From: "Olaf Barthel" <olsen@sourcery.han.de>
  5. Date: Sat, 24 Feb 1996 15:39:53 +0100
  6. X-NewsReader: IntuiNews 1.3a (7.9.95)
  7. Subject: Re: Update to Native Developer Kit 3.1: Request for ideas
  8. Message-ID: <13213657@sourcery.han.de>
  9.  
  10. In Article <1005.6624T1300T707@teclink.net>, rad <rad@teclink.net> wrote:
  11. >
  12. > >Amiga Technologies is planning an update to the Native Developer Kit 3.1 and
  13. > >while already a fair number of ideas what to change in the update have been
  14. > >collected I would like to ask what you want to see changed.
  15. >
  16. > The thing I would like most to see in an update is the correcting of
  17. > prototypes in headers to indicate when constant pointers can be passed.
  18. >
  19. > (e.g. in clib/dos.h:
  20. >
  21. > BPTR Open (CONST STRPTR name, long accesMode);
  22. > LONG Write (BPTR file, CONST APTR buffer, long length);
  23. > LONG DeleteFile (CONST STRPTR name);
  24. > LONG Rename (CONST STRPTR oldName, CONST STRPTR newName);
  25. > BPTR Lock (CONST STRPTR name, long type);
  26. > ...
  27. >
  28. > )
  29.  
  30.    I'm working on that, but the CONST qualifier is trickier than one
  31. might expect. For example, the current (6.56) SAS/C optimizer generates
  32. worse code when hitting functions to use const qualifiers for their
  33. arguments. Also, "const <type>" is different from "<type> const" if
  34. <type> is a pointer type. While simple #defines may make sense in the
  35. OS prototypes you might be unable to use these definitions in your
  36. own code.
  37.  
  38. --
  39. Home: Olaf Barthel, Brabeckstrasse 35, D-30559 Hannover
  40.  Net: olsen@sourcery.han.de
  41.